package cn.stylefeng.guns.core.util;

/**
 * 状态码
 * 龙跃云
 * 2018-12-10 14:14:59
 * @author Longyueyun
 *
 */
public enum ResponseCode {

    SUCCESS(200,"SUCCESS"),
    ERROR(401,"ERROR"),
    EXCEPTION(500,"EXCEPTION");

    private final int code;
    private final String desc;


    ResponseCode(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return code;
    }
    public String getDesc(){
        return desc;
    }

}
